package com.hzp.micromall.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzp.micromall.admin.dto.UmsAdminDto;
import com.hzp.micromall.admin.entity.UmsAdmin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author houzipeng
 * @Date 2022/2/16 23:01
 * @Version 1.0
 */
@Mapper
public interface UmsAdminDao extends BaseMapper<UmsAdmin> {

    UmsAdmin selectByAdminname(String username);

    Page<UmsAdminDao> getPageByName(Page<UmsAdminDto> page, @Param("keyword") String keyword);

}
